import os
img_list = os.listdir('/raid/datasets/cxq_data/MSD/test/image')
with open("test.txt",'w',encoding='utf-8')as f :
    for img in img_list:
        f.write(img.split(".")[0])
        f.write("\n")